package com.xbongbong.pro.user.pojo.dto;

import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 用户列表按字母排序
 * @author 吴峰
 * @version v1.0
 * @date 2019/2/27 15:19
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class UserLetterListDTO extends BaseDTO {

    private static final long serialVersionUID = -3384030048000009673L;
    /**
     * 类型
     * @see com.xbongbong.sys.enums.UserTypeOfLetterEnum
     */
    private Integer type;

    /**
     * 搜索的用户名称
     */
    private String nameLike;

    /**
     * 部门id
     */
    private Long departmentId;

    /**
     * 0 默认，不包含离职员工		1包含离职员工、且包含隐藏员工
     */
    private Integer viewPermission;

    /**
     * @see DelEnum
     */
    private Integer del;

    private Integer start;

    private Integer pageSize;

    public UserLetterListDTO(){
        viewPermission = 0;
        del = DelEnum.NORMAL.getDel();
        start = 0;
        pageSize = 500;
    }
}
